package org.bill.entity;

import java.util.List;

import org.bill.util.GeneralUtil;

/**
 * 账单映射
 * 
 * @author 米mi
 *
 */
public class BillCenter extends Bill {

    /**
     * 账单明细
     */
    private List<BillDetail> details;

    public BillCenter() {}

    public BillCenter(String billId, List<BillDetail> details) {
        this.details = details;
        setBillId(billId);
        setBillTotal(GeneralUtil.getTotalPrice(details));
    }

    public List<BillDetail> getDetails() {
        return details;
    }

}
